import request from '@/service/index.js'

export const queryStockShortageApplicationList = (productName, brandName, status, page, pageSize) => {
  return request.get('/stock/shortage/record', {
    params: {
      productName,
      brandName,
      status,
      page,
      pageSize,
    },
  })
}

export const updateStockShortageApplication = (data) => {
  return request.put('/stock/shortage/record', data)
}

export const deleteStockShortageApplication = (id) => {
  return request.delete('/stock/shortage/record', {
    params: { id },
  })
}
